package GUI;

import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JPanel;

import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Font;
import javax.swing.JTextField;
import javax.swing.JButton;

import GUI_CONTROLER.*;
import start.*;

import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import javax.swing.JTextArea;
import javax.swing.JTextPane;

public class LoginUserPanel extends JPanel {
	
	public JTextField textField;
	public JTextField textField_1;
	String user,pass;
	public int flag=-1;
	public JButton btnOk;
	public JButton btnCancel;
	public JLabel lblLoginSystem;
	public JLabel lblUserid;
	JLabel lblPassword;
	
	public LoginUserPanel() {
	setFont(new Font("Trebuchet MS", Font.PLAIN, 18));
	this.setLayout(null);
	//getContentPane().setSize(155, 20);
	
	lblLoginSystem = new JLabel("LOGIN SYSTEM");
	lblLoginSystem.setFont(new Font("Tahoma", Font.PLAIN, 18));
	lblLoginSystem.setForeground(Color.BLUE);
	lblLoginSystem.setBounds(130, 0, 141, 14);
	add(lblLoginSystem);
	
	textField = new JTextField();
	textField.setBounds(126, 37, 86, 20);
	this.add(textField);
	textField.setColumns(10);
	
	
	JLabel lblUserid = new JLabel("USER_ID");
	lblUserid.setFont(new Font("Tahoma", Font.PLAIN, 15));
	lblUserid.setBounds(25, 40, 78, 14);
	this.add(lblUserid);
	
	lblPassword = new JLabel("PASSWORD");
	lblPassword.setFont(new Font("Tahoma", Font.PLAIN, 15));
	lblPassword.setBounds(25, 85, 86, 14);
	this.add(lblPassword);
	
	
	textField_1 = new JTextField();
	textField_1.setBounds(126, 84, 86, 20);
	this.add(textField_1);
	textField_1.setColumns(10);
	
	btnOk = new JButton("OK");
	btnOk.setBounds(89, 172, 89, 23);
	this.add(btnOk);
	
	btnCancel = new JButton("CANCEL");
	btnCancel.setBounds(231, 172, 89, 23);
	this.add(btnCancel);
	
	this.setVisible(true);
	
	btnCancel.addActionListener(new ActionListener() {
		public void actionPerformed(ActionEvent e) {
			System.exit(0);  // Eli added 3.1.2012
		}
	});
	}
}
